﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.ProductInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int ProductId=(Convert.ToInt32(strid));
					ShowInfo(ProductId);
				}
			}
		}
		
	private void ShowInfo(int ProductId)
	{
		Maticsoft.BLL.ProductInfo bll=new Maticsoft.BLL.ProductInfo();
		Maticsoft.Model.ProductInfo model=bll.GetModel(ProductId);
		this.lblProductId.Text=model.ProductId.ToString();
		this.lblProductImage.Text=model.ProductImage;
		this.lblProductType.Text=model.ProductType;
		this.lblSeriesId.Text=model.SeriesId.ToString();
		this.lblProductName.Text=model.ProductName;
		this.lblProductGrade.Text=model.ProductGrade;
		this.lblColor.Text=model.Color;
		this.lblMaterial.Text=model.Material;
		this.lblVoltage.Text=model.Voltage.ToString();
		this.lblPower.Text=model.Power.ToString();
		this.lblCutOut.Text=model.CutOut.ToString();
		this.lblSize.Text=model.Size.ToString();
		this.lblProductStock.Text=model.ProductStock.ToString();
		this.lblPrice.Text=model.Price.ToString();

	}


    }
}
